<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style type="text/css">
	body {
	font-size: 12px;
	background-image: url(images/bg.gif);
	background-repeat: repeat;
}
	
</style>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/jquery-1.8.2.min.js"></script>
<script type="text/javascript">
	$(function (){
		$("#logout").css("cursor", "pointer");
		$("#logout").click(function (){
			$.post(
					"<%=request.getContextPath() %>/login/logout",
					{},
					function (obj){
						if(obj){
							window.parent.location.href="login/login";
						}
					},
					"json"
				);
		})
		
	})
</script>
</head>
<body background="#FFFFFF">
	<center><font color="#4d90fe" style="font-family: 隶书" size="16">欢迎来到云计算学院</font></center>
	<c:if test="${!empty teacher }">
		<font color="red">你好，${teacher.name }老师</font>
		<span ><a id="logout" style="margin-left: 1100px">注销</a></span>
	</c:if>
</body>
</html>